# Makefile to install parrot-mysql from plumage
# parrot-mysql is (C) 2008-2009, Parrot Foundation.
# $Id: Makefile 12 2009-10-22 19:25:55Z julian.notfound $

# Hackish way to obtain the cp command.
CP = `parrot_config cp  | sed s/'$$(PERL)'/perl/`

# Get Parrot runtime lib directory.
LIBDIR = `parrot_config libdir``parrot_config versiondir`/library

install:
	$(CP) src/Mysql.pir $(LIBDIR)
	parrot -o $(LIBDIR)/Mysql.pbc $(LIBDIR)/Mysql.pir
